export default async router => {
  router.post('/json', async (ctx, next) => {
    await ctx.render('index', {
      title: 'Hello Koa 2!'
    })
  })
  router.post('/js', async (ctx, next) => {
    ctx.resResult('js用户名不存在！')
  })
}
